package joaomarceloos.scribblerapp.utils;

import java.net.DatagramSocket;

import joaomarceloos.scribblerapp.client.PaintActivity;

public class SocketCenter {

	protected String TAG = SocketCenter.this.getClass().getName();

	/** Activity que iniciou esta thread */
	protected PaintActivity pActivity;
	/** Socket usado para enviar e receber mensagens */
	protected DatagramSocket socket;
	/** Porta na qual o cliente escuta */
	protected static int cPort = 64177;
	/** Porta na qual o server escuta */
	protected static int sPort = 64176;
	/** Informa se as threads devem encerrar */
	protected boolean finish;
	
	public SocketCenter(PaintActivity pActivity) {
		this.pActivity = pActivity;
		finish = false;
	}

	/** Informar que as threads devem encerrar. */
	public void finish() {
		finish = true;
	}
}
